<html>
<head>
	<meta charset="utf-8">
	<script src="/spring/js/jquery-1.11.3.min.js"></script>
</head>
<body>
<h2>Hello World! from index test reload config</h2>
<div>
	<form action="/spring/index/save" method="post">
		<div>
			<span>请输入名字:</span>
			<input  name="name" type="text">
		</div>
		<div>
			<span>请输入学号:</span>
			<input  name="number" type="text">
		</div>	
		<div>
			<input type="submit" value="Submit" id="submit">
		</div>
		<div>
			<a href="/spring/index/list">跳转至查看页面</a>
		</div>
		<div>
			<span>请输入搜索内容:</span>
			<input  id="search" type="text">
		</div>			
		<div>
			<a href="javascript:void(0);"id="xss">xss攻击</a>
		</div>
		<span>你搜索的内容是:</span>		
		<div id="content">
		</div>
	</form>
</div>
<script src="/spring/js/xss.js"></script>
<script>
	$("#xss").click(function(){
		var data= $("#search").val();
		$("#content").html(data);
		return;
    	$.ajax({
			url:"<c:url value='/spring/index/xss'/>",
			type:"post",
			data:{
				data:data
			},
			success:function(data){
			}
		})
	});
</script>
</body>
</html>
